 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>
	ThundeRex中美专递|中美专递|快递|中美送|电子商务物流解决方案
</title>
<link href="{CSS_PATH}fenglei_css/Member.css" rel="stylesheet" type="text/css" />
<script src="{JS_PATH}fenglei_js/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
 <body onload="chs()">   
    <div id="depotbox">
        <div id="title">
            <span class="spanleft">库存信息</span>
        </div>
        <div id="divbody">
            <div class="divcontrol">
                <span>入库状态：</span> <span>
                    <select name="ddlState" onchange="showorder()" id="ddlState" style="width:85px;">
	<option value="全部"  selected="selected" >全部</option>
	<option value="未入库">未入库</option>
	<option value="已入库">已入库</option>
	<option value="已出库">已出库</option>

</select>
<form action="index.php?m=order&c=index&a=changeorder" method="post">
                </span><span style="color:red;">&nbsp;&nbsp;&nbsp;&nbsp;状态说明:“未入库”为预报的包裹信息，“已入库”为在库的包裹信息，“已出库”为已生成订单的包裹信息</span>
            </div>
            <div id="divresult">
                <div>
	<table cellspacing="4" cellpadding="4" align="Center" id="gvDepot" style="color:#333333;font-size:Medium;width:750px;text-align: center; font-size: large; margin-bottom: 5px;">
		<tbody><tr style="color:White;background-color:#507CD1;font-weight:bold;">
			<th scope="col">
                               <!-- <span type="checkbox"><input id="gvDepot_CheckBox2" type="checkbox" name="gvDepot$ctl01$CheckBox2" onclick="javascript:selectall(this);"></span> -->
                            </th><th scope="col">序号</th><th scope="col">转运公司</th><th scope="col">转运单号</th><th scope="col">包裹内容</th><th scope="col">重量</th><th scope="col">转仓</th><th scope="col">入库时间</th><th scope="col">收费天数</th><th scope="col">入库状态</th><th scope="col">保价</th><th scope="col">备注</th><th scope="col">操作</th>
		</tr>
        <div id="div1">
        {php $qi=0}
        {loop $datas $r}              
        <tr>
        <td><input id="gvDepot_CheckBox2" type="radio" name="orderid" onclick="javascript:selectall(this);"></td>       
        <td>{php echo $qi+1}</td>
        <td>{$r[zhcompany]}</td>
        <td>{$r[zhnumber]}</td>
        <td>{$r[pack]}</td>
        <td>{$r[weight]}</td>
        <td></td>
        <td>{php echo date('Y-n-d',$r['uptime'])}</td>
        <td>0</td>
        <td>{$r[state]}</td>
        <td>{$r[whprice]}</td>
        <td>{$r[remark]}</td>
        <td><a href="#">取消</a></td>
        </tr>
        {$qi++} 
        {/loop}
        </div>
      
	</tbody></table>
</div>&nbsp;
		
            </div>
            <div class="paginator">
                 
<!-- AspNetPager V7.2 for VS2005 & VS2008  Copyright:2003-2008 Webdiyer (www.webdiyer.com) -->
<!--记录总数只有一页，AspNetPager已自动隐藏，若需在只有一页数据时显示AspNetPager，请将AlwaysShow属性值设为true！-->
<!-- AspNetPager V7.2 for VS2005 & VS2008 End -->
			{$pages}

            </div>
            <div class="depotbut">              
            </div>
        </div>
    </div>
<script type="text/javascript">
 function showorder(){
	 var xzc=document.getElementById("ddlState");
	 switch (xzc.value){
		 case "全部":{
		 	window.location.replace("index.php?m=order&c=index&a=show_order");
			break;}
		case "未入库":{
			window.location.replace("index.php?m=order&c=index&a=show_order&s=1");
			break;}
		case "已入库":{window.location.replace("index.php?m=order&c=index&a=show_order&s=2");
			break;}
		case "已出库":{window.location.replace("index.php?m=order&c=index&a=show_order&s=3");
			break;}
		
		 } 
	
	 }
/*function chs(){
		var s=location.search;
		var shixian=document.getElementById("ddlState")
		//alert(s);
		var pre=/(\d)$/;
		var se=pre.exec(s);
		alert(typeof(se).value);
		switch (se){
			case "1,1":
				shixian.selected="未入库";
				break;
			case "2,2":
				shixian.selected="已入库";
				break;
			case "3,3":
				shixian.selected="已出库";
				break;
						
			
			}
		//alert(location.search);
	
	} */
 
 </script>
</body>
</html>